/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-11
 * Time: 11:25
 */
class Student{
    public String name;
    public int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class Test {
    public static void main(String[] args) {
        String s="hello";
        System.out.println(s.length());
        int[] array={1,2,3,4,5};
        System.out.println(array.length);
        System.out.println("*****************************");

        String s1=String.valueOf(12345);
        String s2=String.valueOf(new Student("ll",12));
        System.out.println(s1);
        System.out.println(s2);
        System.out.println("*********************************");

        int a=Integer.valueOf("1233");
        System.out.println(a);
        System.out.println("*********************************");

        String s3=String.format("%d-%d-%d",2025,7,11);//跟printf很像
        System.out.println(s3);
        System.out.println("*********************************");

        String s4="123\\345+111";
        String[] strings=s4.split("\\+");
        for (int i = 0; i < strings.length; i++) {
            System.out.println(strings[i]);
        }


    }
}
